
import { JsonUtil } from "../../../../../extensions/oops-plugin-framework/assets/core/utils/JsonUtil";

export class TableBuff {
    static TableName: string = "Buff";

    private data: any;

    init(id: number) {
        var table = JsonUtil.get(TableBuff.TableName);
        this.data = table[id];
        this.id = id;
    }

    /** 编号【KEY】 */
    id: number = 0;

    /** buff名 */
    get name(): string {
        return this.data.name;
    }
    /** 状态描述 */
    get describe(): string {
        return this.data.describe;
    }
    /** 受击特效 */
    get icon_path(): string {
        return this.data.icon_path;
    }
    /** 效果类型 */
    get gain(): number {
        return this.data.gain;
    }
    /** 可叠加层数上限 */
    get overlying(): number {
        return this.data.overlying;
    }
    /** 战斗飘的文字 */
    get tip(): string {
        return this.data.tip;
    }
    /** 受击特效 */
    get effect_buff(): string {
        return this.data.effect_buff;
    }
}
    